package com.tmt.im.jpa.repository;

import com.tmt.data.jpa.repository.ITmtBaseRepo;
import com.tmt.im.jpa.entity.ChatSessionMember;
import org.springframework.stereotype.Repository;

import java.sql.Timestamp;

/**
 * @Description TODO
 * @Author wuyi
 * @Date 2024/7/13 19:03
 * @Version 1.0
 **/
@Repository
public interface ChatSessionMemberRepo extends ITmtBaseRepo<ChatSessionMember, Long> {

    int countByCheckStatusAndAgreeStatusAndCreateTimeAfter(int checkStatus, int agreeStatus, Timestamp expireTime);

    ChatSessionMember findOneByMemberIdAndSessionId(Long memberId, Long sessionId);
}
